// ============================================================================
//
// Copyright (C) 2006-2007 Dengues
//
// Google Group: http://groups.google.com/group/dengues
// QQ Group: 24885404
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
//
// ============================================================================
package org.dengues.core.components;

import org.dengues.core.i18n.Messages;

/**
 * Qiang.Zhang.Adolf@gmail.com class global comment. Detailled comment <br/>
 * 
 * $Id: Dengues.epf 1 2006-09-29 17:06:40Z qiang.zhang $
 * 
 */
public enum ENodeParameterName {
    // in the Database Editor.
    DB_COMMENT(Messages.getString("MetadataTableViewer.comment")), //$NON-NLS-1$
    // for the DBTable
    DB_TABLE_NAME(Messages.getString("MetadataTableViewer.name")), //$NON-NLS-1$
    DB_TABLE_OPERATION(Messages.getString("ENodeParameterName.operation")), //$NON-NLS-1$
    DB_TABLE_TYPE(Messages.getString("ENodeParameterName.type")), //$NON-NLS-1$
    DB_TABLE_COMMENT(Messages.getString("MetadataTableViewer.comment")), //$NON-NLS-1$

    // for the DBColumn
    DB_COLUMN_NAME(Messages.getString("MetadataTableViewer.name")), //$NON-NLS-1$
    DB_COLUMN_TYPE(Messages.getString("ENodeParameterName.type")), //$NON-NLS-1$
    DB_COLUMN_DEFALUT(Messages.getString("MetadataTableViewer.default")), //$NON-NLS-1$
    DB_COLUMN_PATTERN(Messages.getString("ENodeParameterName.pattern")), //$NON-NLS-1$
    DB_COLUMN_PRECISION(Messages.getString("MetadataTableViewer.precision")), //$NON-NLS-1$
    DB_COLUMN_LENGTH(Messages.getString("MetadataTableViewer.length")), //$NON-NLS-1$
    DB_COLUMN_KEY(Messages.getString("MetadataTableViewer.key")), //$NON-NLS-1$
    DB_COLUMN_NULLABLE(Messages.getString("MetadataTableViewer.nullable")), //$NON-NLS-1$
    DB_COLUMN_ONLYREAD(Messages.getString("MetadataTableViewer.onlyread")), //$NON-NLS-1$

    DB_COLUMN_OPERATION(Messages.getString("ENodeParameterName.operation")), //$NON-NLS-1$
    DB_COLUMN_COMMENT(Messages.getString("MetadataTableViewer.comment")), //$NON-NLS-1$

    // in the Process Editor.
    COMPONENT_NAME(Messages.getString("ENodeParameterName.Component_Name")), //$NON-NLS-1$
    CATEGORY(Messages.getString("ENodeParameterName.category")), //$NON-NLS-1$
    UNIQUE_NAME(Messages.getString("ENodeParameterName.Unique_Name")), //$NON-NLS-1$
    PROCESS_MAIN_ROOT_NODE("PROCESS_MAIN_ROOT_NODE"), //$NON-NLS-1$

    // in the for the Property Tab in the CompNode
    CONNECTIVITY("CONNECTIVITY"), //$NON-NLS-1$
    QUERY("QUERY"), //$NON-NLS-1$
    QUERYTEXT("QUERYTEXT"), //$NON-NLS-1$
    METADATA("METADATA"), //$NON-NLS-1$

    // in the for the Main Tab in the CompConnection
    CONNECTION_METADATA("CONNECTION_METADATA");//$NON-NLS-1$

    private String displayName;

    /**
     * Qiang.Zhang.Adolf@gmail.com ENodeParameterName constructor comment.
     * 
     * @param displayName
     */
    ENodeParameterName(String displayName) {
        this.displayName = displayName;
    }

    public String getName() {
        return toString();
    }

    /**
     * Getter for displayName.
     * 
     * @return the displayName
     */
    public String getDisplayName() {
        return this.displayName;
    }

    /**
     * Sets the displayName.
     * 
     * @param displayName the displayName to set
     */
    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }
}
